package pa1;

public class Frog extends Animal implements ISwimming,IRunning{

    public Frog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(this.name + "正在用蛙腿跑");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "正在用蛙腿游");
    }
}


